package com.leixiaoqiao.service.impl;

import com.leixiaoqiao.dao.AdminDao;
import com.leixiaoqiao.dao.impl.AdminDaoImpl;
import com.leixiaoqiao.pojo.Admin;
import com.leixiaoqiao.service.AdminService;

import java.util.Objects;


public class AdminServiceImpl implements AdminService {
    private AdminDao adminDao;
    public AdminServiceImpl(){
        adminDao = new AdminDaoImpl();
    }
    @Override
    public Boolean verifyAdmin(Admin admin) {
        Admin queryAdmin = adminDao.queryAdmin(admin);
        System.out.println("用户查询结果为："+queryAdmin);
        if (Objects.isNull(queryAdmin)){
            return false;
        }else {
            return true;
        }


    }
}
